package cn.itcast.nems.config;

import cn.itcast.nems.manager.ems.EmsManger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * EMS Manager 初始化配置
 * </p>
 *
 * @author zhouwei
 * @since 2023/10/16 4:05 PM
 **/
@Configuration
public class EmsMangerConfig {
    @Value("${ems.domain}")
    private String emsDomain;
    @Value("${ems.signature}")
    private String emsSignature;
    @Value("${ems.cid:new_ems}")
    private String emsCid;

    @Bean
    public EmsManger emsManger() {
        return new EmsManger(emsDomain, emsSignature, emsCid);
    }
}
